﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ComeSeeThis_MVC2.Models.aspnet_RoleOperationForm>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    RoleAddOperations
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Add Operations to Role "<i><%: Model.Role.RoleName %></i>"</h2>
    <h2>
        Operations</h2>
    <% using (Html.BeginForm())
       {%>
    <%--<input type="hidden" id="RoleId" name="RoleId" value="<%: Model.Role.RoleId %>" />--%>
    <table>
        <%
            var i = 1;
            foreach (var operation in Model.AllOperations)
            {%>
        <tr>
            <th id="vertical">
                <label for="cb<%: i %>">
                    <%: operation.Name %></label>
            </th>
            <td>
                <input type="checkbox" id="cb<%: i %>" name="cb<%: i %>" value="<%: operation.OperationId %>" />
            </td>
        </tr>
        <%i++;
            } %>
    </table>
    <input type="submit" value="Save" />
    <% } %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="BodyTagContent" runat="server">
</asp:Content>
